#ifndef WEATHER_ONLINE_H
#define WEATHER_ONLINE_H

#include <QWidget>
#include <QMovie>
#include <QSslSocket>
#include <QNetworkAccessManager> //http 管理类
#include <QNetworkRequest> //http 请求类
#include <QNetworkReply> //http 响应类

#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonValue>

#include <QUrl>
#include <QMap>
namespace Ui {
class weather_online;
}

class weather_online : public QWidget
{
    Q_OBJECT

public:
    explicit weather_online(QWidget *parent = nullptr);
    ~weather_online();
    QNetworkAccessManager *online ;
    QMap <QString,QString> city_info ;

    QStringList qs;
    void read_file();
    void send_requests();
    void handle_msg(QNetworkReply *re);
    void show_current();
private:
    Ui::weather_online *ui;
};

#endif // WEATHER_ONLINE_H
